Data projection and preprocessing